package com.neusoft.resturant.service.impl;

import com.neusoft.resturant.entity.Order;
import com.neusoft.resturant.mapper.OrderMapper;
import com.neusoft.resturant.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Integer insertOrder(Order order) {
        return orderMapper.insertOrder(order);
    }

    @Override
    public List<Order> selectOrder(String name) {
        return orderMapper.selectOrder(name);
    }

    @Override
    public Integer updateOrder(Order order) {
        return orderMapper.updateOrder(order);
    }
}
